<template>
  <div>
    <tab-bar>
      <tab-bar-item path="/home">
        <template v-slot:item-icon>
          <img src="../../assets/image/tabbar/home.svg" alt="" />
        </template>
        <template v-slot:item-active-icon>
          <img src="../../assets/image/tabbar/home_active.svg" alt="" />
        </template>
        <template v-slot:item-font> <div>首页</div></template>
      </tab-bar-item>
      <tab-bar-item path="/category">
        <template v-slot:item-icon>
          <img src="../../assets/image/tabbar/category.svg" alt=""
        /></template>
        <template v-slot:item-active-icon>
          <img src="../../assets/image/tabbar/category_active.svg" alt="" />
        </template>
        <template v-slot:item-font> <div>分类</div></template>
      </tab-bar-item>
      <tab-bar-item path="/cart">
        <template v-slot:item-icon>
          <img src="../../assets/image/tabbar/shopcart.svg" alt=""
        /></template>
        <template v-slot:item-active-icon>
          <img src="../../assets/image/tabbar/shopcart_active.svg" alt="" />
        </template>
        <template v-slot:item-font> <div>购物车</div></template>
      </tab-bar-item>
      <tab-bar-item path="/profile">
        <template v-slot:item-icon>
          <img src="../../assets/image/tabbar/profile.svg" alt=""
        /></template>
        <template v-slot:item-active-icon>
          <img src="../../assets/image/tabbar/profile_active.svg" alt="" />
        </template>
        <template v-slot:item-font> <div>我的</div></template>
      </tab-bar-item>
    </tab-bar>
    <h2></h2>
  </div>
</template>
<script>
import TabBar from "components/commen/tabbar/TabBar";
import TabBarItem from "components/commen/tabbar/TabBarItem.vue";
export default {
  name: "MainTabBar",
  components: {
    TabBar,
    TabBarItem,
  },
};
</script>